﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using SportsStore.Domain.Entities;

namespace SportsStore.Domain.Context
{
    public interface IProductContext
    {
        IList<Product> GetProduct();
    }

    class ProductContext : IProductContext
    {
        public IList<Product> GetProduct()
        {
            var result = DataAccessManagerFactory.GetProductRepository().All().ToList();
            return result;
        }
    }
}